﻿using System;

namespace Genko.Model
{
	public class DataMember : Member
	{
		private string name = null;
		private string value = null;
		private MemberAttributes attributes = null;

		public DataMember()
		{

		}

		public DataMember(string name)
		{
			this.name = name;
		}

		public virtual string Name
		{
			get { return this.name; }
			set { this.name = value; }
		}

		public override string Value
		{
			get { return this.value; }
			set { this.value = value; }
		}

		public override MemberAttributes Attributes
		{
			get
			{
				if (attributes == null) {
					attributes = new MemberAttributes();
				}
				return attributes;
			}
		}

		public override bool CanBeAttached(Member member)
		{
			return (member is DataMember);
		}
	}
}
